﻿using YNTK.Common.Const;
using SqlSugar;
using System;

namespace YNTK.SubDev.Entitys
{
    /// <summary>
    /// 客户信息
    /// </summary>
    [SugarTable("zy_oa_customer")]
    [Tenant(ClaimConst.TENANT_ID)]
    public class ZyOaCustomerEntity
    {
        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(ColumnName = "Id", IsPrimaryKey = true)]
        public string Id { get; set; }
        
        /// <summary>
        /// 联系人
        /// </summary>
        [SugarColumn(ColumnName = "UserName")]        
        public string UserName { get; set; }
        
        /// <summary>
        /// 密码
        /// </summary>
        [SugarColumn(ColumnName = "Password")]        
        public string Password { get; set; }
        
        /// <summary>
        /// OpenID
        /// </summary>
        [SugarColumn(ColumnName = "OpenId")]        
        public string OpenId { get; set; }
        
        /// <summary>
        /// 客户名称
        /// </summary>
        [SugarColumn(ColumnName = "Name")]        
        public string Name { get; set; }
        
        /// <summary>
        /// 微信号码
        /// </summary>
        [SugarColumn(ColumnName = "WeChat")]        
        public string WeChat { get; set; }
        
        /// <summary>
        /// QQ号码
        /// </summary>
        [SugarColumn(ColumnName = "QQ")]        
        public string Qq { get; set; }
        
        /// <summary>
        /// 手机号码
        /// </summary>
        [SugarColumn(ColumnName = "Mobile")]        
        public string Mobile { get; set; }
        
        /// <summary>
        /// 联系电话
        /// </summary>
        [SugarColumn(ColumnName = "Mobile2")]        
        public string Mobile2 { get; set; }
        
        /// <summary>
        /// Email
        /// </summary>
        [SugarColumn(ColumnName = "Email")]        
        public string Email { get; set; }
        
        /// <summary>
        /// 客户地址
        /// </summary>
        [SugarColumn(ColumnName = "Address")]        
        public string Address { get; set; }
        
        /// <summary>
        /// 所属区域
        /// </summary>
        [SugarColumn(ColumnName = "Area")]        
        public string Area { get; set; }
        
        /// <summary>
        /// 预算金额
        /// </summary>
        [SugarColumn(ColumnName = "BudgetAmount")]        
        public string BudgetAmount { get; set; }
        
        /// <summary>
        /// 详细需求信息
        /// </summary>
        [SugarColumn(ColumnName = "Remark")]        
        public string Remark { get; set; }
        
        /// <summary>
        /// 文件
        /// </summary>
        [SugarColumn(ColumnName = "Flies")]        
        public string Flies { get; set; }
        
        /// <summary>
        /// 是否删除
        /// </summary>
        [SugarColumn(ColumnName = "IsDel")]        
        public bool IsDel { get; set; }
        
        /// <summary>
        /// 是否有效
        /// </summary>
        [SugarColumn(ColumnName = "Enable")]        
        public bool Enable { get; set; }
        
        /// <summary>
        /// 图片
        /// </summary>
        [SugarColumn(ColumnName = "Photos")]        
        public string Photos { get; set; }
        
        /// <summary>
        /// 文件
        /// </summary>
        [SugarColumn(ColumnName = "Files")]        
        public string Files { get; set; }
        
        /// <summary>
        /// 状态 0正常 1签约客户 2异常客户 3完工客户
        /// </summary>
        [SugarColumn(ColumnName = "State")]        
        public int? State { get; set; }
        
        /// <summary>
        /// 客户类型
        /// </summary>
        [SugarColumn(ColumnName = "CustomerTypeId")]        
        public string CustomerTypeId { get; set; }
        
        /// <summary>
        /// 创建人
        /// </summary>
        [SugarColumn(ColumnName = "Creater")]        
        public string Creater { get; set; }
        
        /// <summary>
        /// 创建日期
        /// </summary>
        [SugarColumn(ColumnName = "CreateDate")]        
        public object CreateDate { get; set; }
        
        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(ColumnName = "CreateTime")]        
        public DateTime? CreateTime { get; set; }
        
        /// <summary>
        /// 最后修改人
        /// </summary>
        [SugarColumn(ColumnName = "Modifyer")]        
        public string Modifyer { get; set; }
        
        /// <summary>
        /// 修改时间
        /// </summary>
        [SugarColumn(ColumnName = "ModifyTime")]        
        public DateTime? ModifyTime { get; set; }
        
        /// <summary>
        /// 跟进人
        /// </summary>
        [SugarColumn(ColumnName = "LastHander")]        
        public string LastHander { get; set; }
        
        /// <summary>
        /// 负责人（多个）
        /// </summary>
        [SugarColumn(ColumnName = "DesPerson")]        
        public string DesPerson { get; set; }
        
        /// <summary>
        /// 负责人（多个）
        /// </summary>
        [SugarColumn(ColumnName = "DesPersonName")]        
        public string DesPersonName { get; set; }
        
        /// <summary>
        /// 最后跟进状态
        /// </summary>
        [SugarColumn(ColumnName = "LastTrackState")]        
        public int? LastTrackState { get; set; }
        
        /// <summary>
        /// 客户行业
        /// </summary>
        [SugarColumn(ColumnName = "Industry")]        
        public string Industry { get; set; }
        
        /// <summary>
        /// 客户描述
        /// </summary>
        [SugarColumn(ColumnName = "Profile")]        
        public string Profile { get; set; }
        
        /// <summary>
        /// 客户编码
        /// </summary>
        [SugarColumn(ColumnName = "CustomerId")]        
        public string CustomerId { get; set; }
        
        /// <summary>
        /// 客户价值
        /// </summary>
        [SugarColumn(ColumnName = "CustomerValues")]        
        public string CustomerValues { get; set; }
        
        /// <summary>
        /// 所属省
        /// </summary>
        [SugarColumn(ColumnName = "Province")]        
        public string Province { get; set; }
        
        /// <summary>
        /// 所属市
        /// </summary>
        [SugarColumn(ColumnName = "City")]        
        public string City { get; set; }
        
        /// <summary>
        /// 预留1
        /// </summary>
        [SugarColumn(ColumnName = "Spare1")]        
        public string Spare1 { get; set; }
        
        /// <summary>
        /// 预留2
        /// </summary>
        [SugarColumn(ColumnName = "Spare2")]        
        public string Spare2 { get; set; }
        
        /// <summary>
        /// 纬度
        /// </summary>
        [SugarColumn(ColumnName = "Latitude")]        
        public decimal Latitude { get; set; }
        
        /// <summary>
        /// 经度
        /// </summary>
        [SugarColumn(ColumnName = "Longitude")]        
        public decimal Longitude { get; set; }
        
        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(ColumnName = "F_EnabledMark")]        
        public int? EnabledMark { get; set; }
        
        /// <summary>
        /// 类型 0-线索  1-客户
        /// </summary>
        [SugarColumn(ColumnName = "F_Type")]        
        public int? Type { get; set; }
        
        /// <summary>
        /// 线索来源
        /// </summary>
        [SugarColumn(ColumnName = "F_Source")]        
        public string Source { get; set; }
        
    }
}
